package com.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDate;

@Data
public class StuInfo {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    private String name;
    private Integer gender;
    private String stuAvatar;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthDate;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long idNumber;
    private String householdRegister;
    private String currentAddress;
    private String emergencyContactName;
    private String emergencyContactPhone;
    private String bindCode;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long healthId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate admissionDate;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long classId;
    private String classGradeLevel;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long classTeacherId;
    private boolean isGraduated;
    private boolean stuStatus;
    @TableField(exist = false) // 忽略映射关系
    private String relationShip;
}
